#include "ObjCOnversioner.h"
static string modelFolderPath = "..\\..\\Model";

int main()
{
    vector<string> objFiles;
    get_files(modelFolderPath, ".obj", objFiles);

    for (int i = 0; i < objFiles.size(); i++)
    {
        string objURL = objFiles[i];
        string usdURL = objURL.substr(0, objURL.find_last_of('.')) + ".usd";
        string gltfURL = objURL.substr(0, objURL.find_last_of('.')) + ".gltf";

        cout << objURL << endl << usdURL << endl << gltfURL << endl;
        ObjConversioner obj;
        obj.LoadObjModel(objURL);
        //obj.printModelMesh();
        obj.SaveUsdModel(usdURL);
        obj.SaveglTFModel(gltfURL);
    }

    system("pause");

    return 0;
}